
package src.origintrail;

import java.util.ArrayList;

/**
 * A specialized handler for events
 * @author csmythe
 */
public class EvtHandler extends ArrayList<Event> {

    /**
     * Constructor
     */
    public EvtHandler() {
        
    }
    
    /**
     * Pops off the first item
     * @return The popped Event
     */
    public Event pop(){
        for(int i = 0; i < this.size(); i++)
            System.out.println(this.toArray()[i].toString());
        return remove(0);
    }
}
